package yf.mall.enums;

import lombok.Getter;


/**
 * 
 * 
 * @date Fri Sep 27 18:42:53 CST 2019
 */
@Getter
public enum MallOrderOrderStatusEnum {

    NEW(0, "新订单"),
    DELIVERING(1, "配货中"),
    DELIVERED(2, "已发货"),
    RECEIVED(3, "已收货"),
    REFUNDING(4, "退款中"),
    REFUNDED(5, "已退款"),
    REFUSE(6, "已拒绝"),
    DONE(7, "已完成"),
    CANCELED(8, "已取消");


    int index;
    String value;

    MallOrderOrderStatusEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return MallOrderOrderStatusEnum.values()[idx].getValue();
    }

}
